package com.j283_5.wisdom_park.vo.visitor_management;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class VisitorsVo {
    private Integer visId;
    private String visName;
    private String visPhone;
    private Integer visType;
    private String vireUnit;
    private String havCar;
    private String carNumber;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Timestamp leaveTime;

    public VisitorsVo(Integer visId, String visName, String visPhone, Integer visType,Timestamp leaveTime) {
        this.visId = visId;
        this.visName = visName;
        this.visPhone = visPhone;
        this.visType = visType;
        this.leaveTime = leaveTime;
    }

    public VisitorsVo(Integer visId, String visName, String visPhone) {
        this.visId = visId;
        this.visName = visName;
        this.visPhone = visPhone;
    }
}
